#coding=utf-8
'''
Created on 2016年8 3
@author: wangpeng
'''
import ConfigParser

Configpath = r'E:\eclipse\All_project_BT_speaker\SONY_XBH\common_setting\configuration.txt'

def bluetooth_id():                       #设备IP地址
    with open(Configpath) as f:
        Conf = ConfigParser.ConfigParser()
        Conf.readfp(f)
        current = Conf.get("bluetooth_id", "key")
        return current

def write_labview_log_add():
    with open(Configpath) as f:
        Conf = ConfigParser.ConfigParser()
        Conf.readfp(f)
        current = Conf.get("write_labview_log_add", "key")
        return current
    
def get_labview_status():
    with open(Configpath) as f:
        Conf = ConfigParser.ConfigParser()
        Conf.readfp(f)
        current = Conf.get("get_labviwe_status", "key")
        return current

def GetImagePath():
    with open(Configpath) as f:
        Conf = ConfigParser.ConfigParser()
        Conf.readfp(f)
        current_huawei_honor7 = Conf.get("reportPath", "key_huawei_honor7")
        current_huawei_5x = Conf.get("reportPath", "key_huawei_5x")      
        return current_huawei_honor7,current_huawei_5x
    #【0】代表华为荣耀7手机
    
def kugou_previous_music():
    with open(Configpath) as f:
        Conf = ConfigParser.ConfigParser()
        Conf.readfp(f)
        current = Conf.get("kugou_provious_music_id", "key")
        return current 

def kugou_next_music():
    with open(Configpath) as f:
        Conf = ConfigParser.ConfigParser()
        Conf.readfp(f)
        current = Conf.get("kugou_next_music_id", "key")
        return current 
    
    
def kugou_local_music_play():
    with open(Configpath) as f:
        Conf = ConfigParser.ConfigParser()
        Conf.readfp(f)
        current = Conf.get("kugou_local_music_id", "key")
        return current 

def kugou_playbackbutton_icon_play():
    with open(Configpath) as f:
        Conf = ConfigParser.ConfigParser()
        Conf.readfp(f)
        current = Conf.get("firstscreen_picture_icon", "key")
        return current   
    
def huawei_BT_setting_icon_open():
    with open(Configpath) as f:
        Conf = ConfigParser.ConfigParser()
        Conf.readfp(f)
        current = Conf.get("huawei_BT_setting_paired_icon", "icon_key")
        return current       

def kugou_menu_play_pause():
    with open(Configpath) as f:
        Conf = ConfigParser.ConfigParser()
        Conf.readfp(f)
        current = Conf.get("kugou_menu_play_pause", "play_pause")
        return current  
 
def labview_result():
    with open(Configpath) as f:
        Conf = ConfigParser.ConfigParser()
        Conf.readfp(f)
        current = Conf.get("labview_result", "result")
        return current     


def kugou_playback_play_pause():
    with open(Configpath) as f:
        Conf = ConfigParser.ConfigParser()
        Conf.readfp(f)
        current = Conf.get("kugou_playback_play_pause", "play_key")
        return current